
import React from 'react';
import './styles/reset.css';
import "antd/dist/antd.css";
import { HashRouter, Route, Switch } from 'react-router-dom';


import SyncLoadable from './utils/SyncLoadable.js';
const Login = SyncLoadable(() => import('./pages/login'));
const Admin = SyncLoadable(() => import('./pages/admin'));
const NotFound = SyncLoadable(() => import('./pages/notfound'));

function App() {
  return (
      <HashRouter>
          <Switch>
            <Route path="/login" component={Login} />
            <Route path="/admin/:id?" component={Admin} />
            <Route path="/" component={NotFound} />
          </Switch>
      </HashRouter>
  );
}
export default App;
